<?php
return [
    'queue' => [
        //队列模式, null=生产及消费, false=仅生产, true=仅消费
        'mode' => null,
        //限制内存(M)
        'memory' => 50,
        //消费消息时回调结构
        'keys' => [
            //获取易仓仓库列表
            'eccangWarehouseList' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\eccang::warehouseList'
            ],
            //获取易仓明细信息
            'eccangWarehouseDetail' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\eccang::warehouseDetail'
            ],
            //获取易仓区域列表
            'eccangAreaList' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\eccang::areaList'
            ],
            //获取易仓库位列表
            'eccangPositionList' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\eccang::positionList'
            ],
            //拉取易仓库存
            'eccangPullStock' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\eccang::pull'
            ],
            //检查库存或写入库存表
            'checkEccangSkuStock' => [
                'cNum' => 2,
                'call' => 'serv\queue\warehouse\eccang::checkStock'
            ],
            //检查易仓的SKU产品信息
            'checkEccangOrder' => [
                'cNum' => 2,
                'call' => 'serv\queue\warehouse\eccang::orderWarehouse'
            ],
            //同步分类信息
            'checkCategoryList' => [
                'cNum' => 1,
                'call' => 'serv\queue\product\product::categoryList'
            ],
            //检查产品是否存在
            'checkProduct' => [
                'cNum' => 2,
                'call' => 'serv\queue\product\product::index'
            ],
            //同步产品列表的SKU到本地仓
            'checkProductStock' => [
                'cNum' => 2,
                'call' => 'serv\queue\product\product::checkProductStock'
            ],
            //同步万邑通库存
            'syncWinitStock' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\winit::pull'
            ],
            //检查库存是否存在或者写入库存表
            'checkWinitSkuStock' => [
                'cNum' => 8,
                'call' => 'serv\queue\warehouse\winit::check'
            ],
            //同步4px库存
            'syncFopStock' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\fop::pull'
            ],
            //检查库存是否存在或者写入库存表
            'checkFopSkuStock' => [
                'cNum' => 4,
                'call' => 'serv\queue\warehouse\fop::check'
            ],
            //同步跨运通的库存
            'syncYumWmsStock' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\yunwms::pull'
            ],
            'checkYunWmsForSkuStock' => [
                'cNum' => 4,
                'call' => 'serv\queue\warehouse\yunwms::check'
            ],
            'syncGoodCangStock' => [
                'cNum' => 4,
                'call' => 'serv\queue\warehouse\goodcang::pull'
            ],
            'checkGoodcangStock' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\goodcang::check'
            ],
            'syncOpeneStock' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\opene::pull'
            ],
            'checkOpeneStock' => [
                'cNum' => 2,
                'call' => 'serv\queue\warehouse\opene::check'
            ],
            'syncEdayunStock' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\edayun::pull'
            ],
            'checkEdayunStock' => [
                'cNum' => 2,
                'call' => 'serv\queue\warehouse\edayun::check'
            ],
            'syncFourstarStock' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\fourstar::pull'
            ],
            'checkFourstarStock' => [
                'cNum' => 2,
                'call' => 'serv\queue\warehouse\fourstar::check'
            ],
            'syncYqnStock' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\yqn::pull'
            ],
            'checkYqnStock' => [
                'cNum' => 2,
                'call' => 'serv\queue\warehouse\yqn::check'
            ],
            'syncPlglogalStock' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\plglobal::pull'
            ],
            'checkPlglobalStock' => [
                'cNum' => 3,
                'call' => 'serv\queue\warehouse\plglobal::check'
            ],
            //统计三段库存
            'stockSummaryQueue' => [
                'cNum' => 1,
                'call' => 'serv\queue\warehouse\stock::stockSummaryQueue'
            ]
        ]
    ]
];
